/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.mobbuzz.bean;

/**
 *
 * @author penyihir kecil
 */
public class Contact extends BaseBean{
            
    private int recId;
    private String name;
    private String id;
    private int sex;
    
    public Contact(){}
    
    public Contact(int recId, String name, String id, int sex){
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.recId = recId;
    }

    /**
     * @return the recId
     */
    public int getRecId() {
        return recId;
    }

    /**
     * @param recId the recId to set
     */
    public void setRecId(int recId) {
        this.recId = recId;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the sex
     */
    public int getSex() {
        return sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(int sex) {
        this.sex = sex;
    }

    protected int getPrimaryKey() {
        return getRecId();
    }
    
    
}
